package com.n9.qq.android.login.tlv;

import com.n9.qq.util.Util;

/**
 * @author ice
 * @since 2019/2/12 9:40
 */
public class Tlv0100 extends BaseTlv {
    int h = 1;
    int i = 5;
    int len = 22;

    public Tlv0100() {
        this.cmd = 0x0100;
    }

    /**
     * @param var1      final 0x00000010
     * @param appid
     * @param var5      final 0x00000000
     * @param var6      final 0x001E10E0
     * @return
     */
    public byte[] getData(long var1, long appid, int var5, int var6) {
        byte[] var7 = new byte[this.len];
        Util.int16_to_buf(var7, 0, this.h);
        Util.int32_to_buf(var7, 2, this.i);
        Util.int32_to_buf(var7, 6, (int)var1);
        Util.int32_to_buf(var7, 10, (int)appid);
        Util.int32_to_buf(var7, 14, var5);
        Util.int32_to_buf(var7, 18, var6);

        return this.getBufData(var7);
    }
}
